﻿// Fill out your copyright notice in the Description page of Project Settings.


#include "TestCharacter.h"
#include "AbilitySystemComponent.h"



// Sets default values
ATestCharacterBase::ATestCharacterBase()
{
	// Set this character to call Tick() every frame.  You can turn this off to improve performance if you don't need it.
	PrimaryActorTick.bCanEverTick = true;

	TestAbilitySystemComponent = CreateDefaultSubobject<UTestAbilitySystemComponent>(TEXT("TestAbilitySystemComponent"));
	TestAbilitySystemComponent->SetIsReplicated(true);
	TestAttributeSet = CreateDefaultSubobject<UTestAttributeSet>(TEXT("TestAttributeSet"));
}

// Called when the game starts or when spawned
void ATestCharacterBase::BeginPlay()
{
	Super::BeginPlay();
	
}

// Called every frame
void ATestCharacterBase::Tick(float DeltaTime)
{
	Super::Tick(DeltaTime);
}

// Called to bind functionality to input
void ATestCharacterBase::SetupPlayerInputComponent(UInputComponent* PlayerInputComponent)
{
	Super::SetupPlayerInputComponent(PlayerInputComponent);
}

UAbilitySystemComponent* ATestCharacterBase::GetAbilitySystemComponent() const
{
	return TestAbilitySystemComponent;
}

UTestAbilitySystemComponent* ATestCharacterBase::BP_GetTestAbilitySystemComponent() const
{
	return TestAbilitySystemComponent;
}

